﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LibGreen.Events
{
	public delegate void SessionFailureHandler (ISession sess, SessionFailureArg reason);

	public class SessionFailureArg
	{
		public enum Reason { Unknown, IncorrectInformation, Technical}
		
		private Reason failureReason;
		public Reason FailureReason
		{
			get { return failureReason; }
		}
		private string errorCode;
		public string ErrorCode
		{
			get { return errorCode; }
		}
		public SessionFailureArg(Reason failureReason, string errorCode)
		{
			this.errorCode = errorCode;
			this.failureReason = failureReason;
		}
	}

}
